package com.ssn.mediator.chatroom;

public class CommonMember extends Member{

    public CommonMember(String name) {
        super(name);
    }
    @Override
    public void setRoom(VRoom room) {
        this.room = room;
    }

    @Override
    public void sendText(String text) {
        System.out.print(name + "发送消息 : ");
        room.sendText(text);
    }

    @Override
    public void sendImage(String img) {
        System.out.println("warning！普通会员不能发送图片");
    }
}
